export function indexObj(data) {
  return uni.$tn.http.get('/activity/index', {params:data})
}

export function listObj(data) {
  return uni.$tn.http.get('/activity/list', {params:data})
}

export function detailObj(data) {
  return uni.$tn.http.get('/activity/detail', {params:data})
}

export function addLeader(data) {
  return uni.$tn.http.post('/activityLeader', data)
}

export function leaderOne(data) {
  return uni.$tn.http.get('/activityLeader/one', {params:data})
}

export function leaderCate(data) {
  return uni.$tn.http.get('/activityLeader/cate', {params:data})
}

export function addActivity(data) {
  return uni.$tn.http.post('/activity', data)
}

export function centerList(data) {
  return uni.$tn.http.get('/activity/centerList', {params:data})
}
export function updateStatus(data) {
  return uni.$tn.http.post('/activity/updateStatus', data)
}

export function updateActivity(data) {
  return uni.$tn.http.post('/activity/updateActivity', data)
}

export function activityOne(data) {
  return uni.$tn.http.get('/activity/one', {params:data})
}

export function entryCheck(data) {
  return uni.$tn.http.get('/activity/entryCheck', {params:data})
}

export function updateEntry(data) {
  return uni.$tn.http.post('/activity/updateEntry', data)
}

export function getDistance(data) {
  return uni.$tn.http.get('/activity/getDistance', {params:data})
}
export function getRelateSpace(data) {
  return uni.$tn.http.get('/activity/getRelateSpace', {params:data})
}
